
package com.chocho.consumeserver.client;

import com.chocho.consumeserver.client.hystrix.JavaCompileHystrix;
import com.chocho.consumeserver.vo.Code;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;


/**
 * @Auther: qiuzp
 * @Date: 19-1-5 下午5:41
 * @Description:
 */


@FeignClient(value = "java-compile-server",fallback = JavaCompileHystrix.class)
public interface JavaCompileClient {

    /**
     * 远程调用编译模块编译，直接返回结果过，绕过消息队列
     */
    @PostMapping("/javacompile/java/compile")
    Map<String, Object> compileJava(Code code);

}

